<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    console.log('----------运算符-----------');
    let n1=123,n2=4231.3,n3='hello',n4=true;
    let re1=n1+n2;
    let re2=n1+n3;
    let re3=n3+n4;
    console.log(re1);
    console.log(re2);
    console.log(re3);
    console.log('-----------自增-----------');
    //  自增/自减在前：先自增/自减，再运算；
    //  自增/自减在后：先运算，再自增/自减；
    let a =4,b=0;
    let res1=a+++--b+a-b;  //4+(-1)+5-(-1)=9
    console.log(res1);
    console.log('-----------赋值-----------');
    let a1=9,a2=2;
    a1<<=a2
    console.log(a1);
    console.log(a2);
    console.log('--------------');
    let x =123,y='123';
    console.log(x==y);   //true,等于。符号两边会自动进行数据类型转换
    console.log(x===y);  //false,全等于。符号两边不会进行数据类型转换
</script>
</html>